const user = () => {
  /*
  *   { , text: '我的主页', value: 1, path: '/user/homepage'},
  {  text: '我的消息', value: 2, path: '/user/my-message'},
  { , text: '我的等级', value: 3},
  { , text: 'vip会员', value: 4},
  { , text: '个人设置', value: 5},
  { , text: '退出登录', value: 0 },*/

  return {
    path: '/user',
    meta: { title: '信息', hidden: false, mobileNo: true },
    name: 'User',
    redirect: '/user/homepage',
    children: [
      {
        path: 'homepage',
        name: 'HomePage',
        meta: {title: '我的主页', icon: 'manager-o'},
        component: () => import('@/views/User/HomePage/index.vue'),
      },
      {
        path: 'update-info',
        name: 'UpdateInfo',
        meta: {title: '编辑信息', mobileHidden:true },
        component: () => import('@/views/User/UpdateInfo/index.vue'),
      },
      {
        path: 'my-message',
        name: 'MyMessage',
        meta: { title: '我的消息', icon: 'envelop-o' },
        redirect: '/user/my-message/at',
        component: () => import('@/views/User/MyMessage/index.vue'),
        children: [
          {
            path: 'at',
            name: 'MyAt',
            meta: { title: '@我的', icon: 'fire-o' },
            component: () => import('@/views/User/MyMessage/MyAt/index.vue'),
          },
          {
            path: 'private',
            name: 'MyPrivateMessage',
            meta: { title: '私信', icon: 'comment-circle-o' },
            component: () => import('@/views/User/MyMessage/MyPrivateMessage/index.vue'),
          },
          {
            path: 'comment',
            name: 'MyComment',
            meta: { title: '评论', icon: 'comment-o' },
            component: () => import('@/views/User/MyMessage/MyComment/index.vue'),
          },
          {
            path: 'notify',
            name: 'MyNotify',
            meta: { title: '通知', icon: 'volume-o' },
            component: () => import('@/views/User/MyMessage/MyNotify/index.vue'),
          },
          {
            path: 'private_detail',
            name: 'PrivateDetail',
            meta: { title: '私信详情',hidden: true },
            component: () => import('@/views/User/MyMessage/PrivateDetail/index.vue'),
          },
        ]
      },
      {
        path: 'my-grade',
        name: 'MyGrade',
        meta: { title: '我的等级', icon: 'diamond-o' },
        component: () => import('@/views/User/MyGrade/index.vue'),
      },
      {
        path: 'vip-member',
        name: 'VipMember',
        meta: { title: 'VIP会员', icon: 'vip-card-o' },
        component: () => import('@/views/User/VipMember/index.vue'),
      },
      {
        path: 'my-setting',
        name: 'MySetting',
        meta: {title: '我的设置', icon: 'setting-o'},
        component: () => import('@/views/User/MySetting/index.vue'),
      },
      {
        path: 'mobile-homepage',
        name: 'MobileHomepage',
        meta: {title: '手机主页', mobileHidden: true },
        component: () => import('@/views/User/MobileHomepage/index.vue'),
      },
      {
        path: 'logout',
        name: 'Logout',
        meta: { title: '退出登录', icon: 'home-o' }
      }
    ]
  }
}
export default user
